package com.woniuxy.userassembly.service.impl;

import com.woniuxy.userassembly.model.RbacUser;
import com.woniuxy.userassembly.dao.RbacUserMapper;
import com.woniuxy.userassembly.service.IRbacUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-22
 */
@Service
public class RbacUserServiceImpl extends ServiceImpl<RbacUserMapper, RbacUser> implements IRbacUserService {
    @Autowired
    private RbacUserMapper mapper;

    @Override
    public RbacUser login(RbacUser user) {
        RbacUser user1 = mapper.platformLogin(user);
        return user1;
    }

    @Override
    public int register(RbacUser user) {
        int i = mapper.register(user);
        return i;
    }

    @Override
    public int delUser(int userId) {
        int i = mapper.delUser(userId);
        return i;
    }

    @Override
    public int updUser(RbacUser user) {
        int i = mapper.updUser(user);
        return i;
    }

}
